<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title>现场主页Win</title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/base.css">
		<style>
			body {
				background-color: #FFFFFF;
				left: 10px;
				right: 10px;
			}
			.win_wid {
				width: 100%;
				height: auto;
			}
			.top_bar {
				width: 100%;
				height: 44px;
				line-height: 44px;
				background-color: #18B4ED
			}
			.top_img {
				float: left;
			}
			.top_text {
				float: right;
			}
			/*.top_bar img {
				position: absolute;
				height: 22px;
				top: 11px;
				left: 15px;
			}
			.top_bar p {
				font-size: 20px;
				text-align: center;
				color: #FFFFFF;
			}
			.top_bar span {
				position: absolute;
				font-size: 18px;
				color: #FFFFFF;
				right: 15px;
				top: 0px;
			}*/
			#cf_title{
				font-size: 20px;
				text-align: center;
				color: #FFFFFF;
			}
			.top_text{
				position: absolute;
				font-size: 18px;
				color: #FFFFFF;
				right: 15px;
				top: 0px;
			}
		</style>
	</head>
	<body>
		<!-- <div class="win_wid">
			<div class="top_bar">
				<a class="top_img"> <img src="../../image/icon_jiantou.png" onclick="backClick()"/></a>
				<p id="cf_title"></p>
				<a class="top_text" onclick="score()"><span>评分</span></a>
			</div>
		</div> -->
		
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar">
			<a class="base_left_item" href="#" onclick="api.closeWin()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="cf_title"></span>
			<a class="base_right_item" onclick="score()">评分</a>
		</div>

	</body>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script src="../../script/common.js"></script>
	<script src="../../script/timeStampTool.js"></script>
	<script src="../../script/processing_images.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript">
		var id = "";
		var cid = "";
		var pids = "";
		var jids = "";
		var uids = "";
		apiready = function() {
	     	id = api.pageParam.id;
			cid = api.pageParam.cid;
			pids = api.pageParam.pid;
			jids = $api.getStorage("cfnetppjxid");
			uids = $api.getStorage("cfnetppuid");
			$api.setStorage("cfevals", id + "," + cid + "," + pids + "," + jids + "," + uids);
			//		alert(id + "   " + cid + "   " + pid + "   " + jid + "   " + uid);
			api.addEventListener({
				name : 'cfevale'
			}, function(ret, err) {
				//coding...
				var values = ret.value;
				var titless = values.title;
				if (titless.length > 9) {
					titless = titless.substring(0, 9) + "...";
				}
				$("#cf_title").text(titless);
			});
			api.openFrame({
				name : 'Task',
				//	        url: 'Task.html',
				url : 'new_Task.html',
				rect : {
					x : 10,
					y : 44+22,
					w : api.winWidth - 20,
					h : api.winHeight - 66,
				},
				pageParam : {
					id : id,
					cid : cid,
					pid : pids
				},
				vScrollBarEnabled : false,
				hScrollBarEnabled : false
			});
		};
		//关闭现场实操窗口
		function backClick() {
			api.closeWin({
			});
		}

		//打开评分窗口
		function score() {
			api.openWin({useWKWebView:true,
				name : 'new_Mark_sheet',
				//	        url: 'Mark_sheet.html',
				url : 'new_Mark_sheet.html',
				pageParam : {
					id : id,
					uid : uids,
					jid : jids,
					pid : pids,
					cid : cid
				}
			});
		}
	</script>
</html>